<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file='../share_header.jsp' %>
<div id="content-header">
    <h1>用户分配</h1>
</div>
<%--<div id="breadcrumb">--%>
<%--&lt;%&ndash;<a href="index.html" class="tip-bottom" data-original-title="Go to Home"><i class="icon-home"></i> Home</a>&ndash;%&gt;--%>
<%--<a href="javascript:void(0)"--%>
<%--url="${pageContext.request.contextPath}/crm/getMyselfClientInfo.do"  class="m-pageChange tip-bottom">客户信息管理</a>--%>
<%--<a href="#" class="current">用户分配</a>--%>
<%--</div>--%>
<div class="container-fluid marginTop20">
    <div class="row-fluid topCircleBorder paddingTop10 paddingBottom10 marginBottom5">
        <%@ include file='share_search_top.jsp' %>
    </div>
    <div class="row-fluid">
        <table id="customerDistributionTable">
        </table>
        <%--//TODO name--%>
        <%--//TODO 三级级联菜单--%>
        <div class="formLayOut bottomMargin20">
            <form id="distributionForm">
                批量分配 第<input type="text" class="smallInputText no-margin"> ~ <input type="text"
                                                                                    class="smallInputText no-margin">至
                <select id="distributeCompany" class="no-margin">
                    <option>公司</option>
                </select>
                <select id="distributeDepartment" class="no-margin">
                    <option>部门</option>
                </select>
                <select id="distributeResponsiblePerson" class="no-margin">
                    <option>责任人</option>
                </select>
                <button type="button" id="distributeBtn" class="btn btn-primary">分配
                </button>
            </form>
        </div>
    </div>
</div>
<script src="${pageContext.request.contextPath}/resources/js/customer/customerDistribution.js"></script>
<script>
    $(function () {
        gotoPage(1);
    });


    $("#distributionForm").submit(function () {
        var url = "";
        var postData = $("#distributionForm").serialize();
        postAjax(url, postData, distributionSuccess);
    });

    var distributionSuccess = function () {

    }

</script>